<%@page import="com.sinba.common.business.dto.MatchDTO"%>
<%@page import="com.sinba.common.business.dto.MatchQueryDTO"%>
<%@page import="com.sinba.common.business.service.IMatchService"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="../language.jsp" %>
<%
if(session.getAttribute("password2")==null){
	/* response.sendRedirect( "login2.jsp?pageUrl=user/sureGetPay.jsp?id="+request.getParameter("id"));
	return; */
}
Long lId =0L;
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
IMatchService matchService = (IMatchService)ac.getBean("matchService");
String id = request.getParameter("id");
lId = Long.valueOf(id);
if(lId==0){
	response.sendRedirect( "matchSell.jsp?status=1");
}
MatchDTO matchDTO = matchService.findById(lId);
if(matchDTO.getStatus()!=1){
	response.sendRedirect( "matchSell.jsp?status=1");
}
request.setAttribute("matchDTO", matchDTO);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><fmt:message key="i18n.accountZhuanZhang"/>-<fmt:message key="i18n.title"/> </title>
<link rel="shortcut icon" href="../index/favicon.png" />
<link href="../skin/skin1/css/subPage.css" rel="stylesheet">
<link rel="stylesheet" href="css/sub_page_main_style.css" />
</head>
<body style="background:#ede3d1;height:800px;">
	<div class="account">
	<div class="top">交易管理 &gt; 收款确认</div>
	<!-- <div class="left"></div> -->
    <div class="right" style="margin: 0px;">
      <form action="match!confirmPay.action" id="confirmPay_form" method="post" enctype="multipart/form-data">
	 	<input type="hidden" name="pageUrl" value="matchSell.jsp?status=1" />
	 	<input type="hidden" name="matchDTO.id" value="${param.id}" />
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="right" width="15%">
					<p>
						凭证图片
					</p> 
				</td>
				<td align="left" width="35%" style="color:red;font-weight: 600">
					<img width="300px"  name="imgUrl" src="${pageContext.request.contextPath}/${matchDTO.imgUrl}"/>
				</td>
			</tr>
			<tr>
				<td align="right" width="15%">
					<p>
						留言
					</p> 
				</td>
				<td align="left" width="35%" style="border:1px solid #cccccc;;font-weight: 600">
					${matchDTO.message }
				</td>
			</tr>
			<tr>
				<td align="right" width="15%"></td>
				<td align="left" width="35%" style="font-weight: 600"><input class="ty_an" type="button" onclick="confirmSubmit()" value="<fmt:message key="i18n.ConfirmPayment" />"/></td>
			</tr>
		</table>
	</form>
    </div>
  </div>
  
<script type="text/javascript" src="../scripts/jquery/jquery-1.4.2.min.js"></script>

<script type="text/javascript">
function confirmSubmit(){
	if(confirm('确认后不能更改,确认是否已收到款项？')){
		$('#confirmPay_form').submit();
	}
}
</script>

</body>
</html>